package com.redstar.interesting.main.hello.controller;

import com.redstar.interesting.main.hello.service.HelloService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Slf4j
public class Hello2Controller implements Controller {

    @Autowired
    private HelloService helloService;


    @Override
    public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
        log.info(">>>>>>执行第二种实现方式Hello2Controller.handleRequest......");
        String method = request.getMethod();

        return null;
    }
}
